package main.flex.control
{
	import main.flex.business.MainBusinessDelegate;
	import main.flex.business.responder.GetMediaResponder;
	
	import mx.rpc.remoting.RemoteObject;
	
	import org.servebox.foundry.control.AbstractSubController;

	public class MediaController extends AbstractSubController
	{
		public static const MEDIA_MODEL_ID				: String = "mediaModel";
		
		private var _service							: RemoteObject;
		
		public function MediaController()
		{
			super();
		}
		
		public function getMedia( espaceId : int ) : void
		{
			getMainBusinessDelegate().getMedia( new GetMediaResponder(), espaceId );
		}
		
		// mécanisme interne de la classe : appel privé au BusinessDelegate
		private function getMainBusinessDelegate() : MainBusinessDelegate
		{
			return MainController.getInstance().getMainBusinessDelegate();
		}
	}
}